<?php

namespace Home\Controller;
use Think\Controller;
// 指定允许其他域名访问  
header('Access-Control-Allow-Origin:*');  
// 响应类型  
header('Access-Control-Allow-Methods:*');  
// 响应头设置  
header('Access-Control-Allow-Headers:x-requested-with,content-type');  

class BaseinfoController extends Controller
{
 
     public function company()
     {
        if(!IS_POST)
        {
            datamsg(0,'非法操作');
        }
        $data=D('company_basic')->select();
        var_dump($data);die;
        datamsg('1',"成功",$data);
     }     

  
}
